package com.zhengqing.design.action.command._01.service.impl;

import com.zhengqing.design.action.command._01.Cook;
import com.zhengqing.design.action.command._01.service.ICuisine;

/**
 * <p> 实现类 </p>
 *
 * @author zhengqingya
 * @description
 * @date 2022/12/22 10:42
 */
public class ShangHaiCuisine implements ICuisine {
    private Cook cook;

    public ShangHaiCuisine(Cook cook) {
        this.cook = cook;
    }

    @Override
    public void cook() {
        System.out.println("上海菜");
        this.cook.doing();
    }
}